﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Biuro.Klasy
{
    [XmlRoot("UserData")]
    public class userData
    {
        string _userID;
        string _password;
        string _database;
        string _port;
        string _host;

        public userData() { }

        public userData(string userID, string password, string database, string port, string host)
        {
            _userID = userID;
            _password = password;
            _database = database;
            _port = port;
            _host = host;
        }
        [XmlElement("userid")]
        public string UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }
        [XmlElement("password")]
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }
        [XmlElement("database")]
        public string Database
        {
            get { return _database; }
            set { _database = value; }
        }
        [XmlElement("port")]
        public string Port
        {
            get { return _port; }
            set { _port = value; }
        }
        [XmlElement("host")]
        public string Host
        {
            get { return _host; }
            set { _host = value; }
        }
    }
}
